<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>店铺每日销售报表</title>
        <link href="../common/js/dp/css/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css"/>
        <link href="../common/css/style1.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="../common/js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="../common/js/jquery-ui.js"></script>
        <script type="text/javascript" src="../common/js/common.js"></script>
        <script type="text/javascript" src="../common/js/dp/js/jquery-ui-timepicker-addon.js"></script>
        <script type="text/javascript" src="../common/js/dp/js/ui.datepicker-zh-cn.js"></script>
        <script type="text/javascript" src="../common/js/datetime.js"></script>
        <script src="../common/js/jquery.fileDownload.js"></script>
        <script src="../common/js/view/dailySales_search.js"></script>
    <script type="text/javascript">
        function ShowMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if(className.indexOf('curr')==-1)
                document.getElementById('menu' + id).className = 'mouseover';
            else
                document.getElementById('menu' + id).className = 'curr mouseover';
            document.getElementById('ul'+id).style.display = 'block';
        }
        function HideMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if (className.indexOf('curr') == -1)
                document.getElementById('menu' + id).className = '';
            else
                document.getElementById('menu' + id).className = 'curr';
            document.getElementById('ul' + id).style.display = 'none';
        }
        var oldOld = null;
        function ShowMenuDd(obj) {
            if (oldOld == obj) return;
            if (oldOld != null) {
                oldOld.className = '';
            }
            obj.className = 'visible';
            oldOld = obj;
        }

        var speed3 = 10; //速度数值越大速度越慢
        var maxWidth = 0;
        window.onload = function () {
            maxWidth = document.getElementById("divScrollCommend").scrollWidth;
            document.getElementById("tdScroll2").innerHTML = document.getElementById("tdScroll1").innerHTML;
            var MyMar = setInterval(Marquee, speed3);
            document.getElementById("divScrollCommend").onmouseover = function () { clearInterval(MyMar) }
            document.getElementById("divScrollCommend").onmouseout = function () { MyMar = setInterval(Marquee, speed3) }
        }

        function Marquee() {
            var left = parseInt(document.getElementById("divScrollCommend").style.left);
            if (left + maxWidth == 0) {
                left = 0;
            }
            else {
                left--;
            }
            document.getElementById("divScrollCommend").style.left = left + 'px';
        }
        
        function query(){
        	var beginTime = $("#begin_time").val();
			var endTime =  $("#end_time").val();
			$("#beginTime").val(beginTime);
			$("#endTime").val(endTime);
			document.getElementById("myForm").submit();
        }
        
    </script>

  </head>
    <body>
        <!--div id="window-box"  class="window-popup">
            <a href="#" class="close"><img src="images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>
            <div class="reel checkbox_box_w">Loading...</div>
        </div-->
	<form id="myForm" action="../../data/excel_export!export.action">
		<input name="beginTime" id="beginTime" type="hidden" value=""/>
			<input name="endTime" id="endTime" type="hidden" value=""/>
	</form>
    <jsp:include page="../common/header.jsp" /> 
   <div class="Container">

       <table class="tabs">
           <tbody>
           	<!--tr style="text-align:left">
                   <td>
                       <ul>
                           <li><a href="dailySales_search.html">店铺每日销售报表</a></li>
                       </ul>

                   </td>
               </tr-->
           </tbody>
       </table>
       <div class="inquiry_box">
           <table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tbody>
               	<tr><td width="10%"><strong>店铺每日销售</strong></td></tr>
               	<tr>
                    <td width="10%"><strong>开始日期</strong></td>
                    <td width="30%"><input name="begin_time" id="begin_time" type="text" value="" class="dpicker"/></td>
                    <td width="10%"><strong>结束日期</strong></td>
                    <td width="30%"><input name="end_time" id="end_time" type="text" value="" class="dpicker"/></td>
                    <td width="20%"><input type="button" class="buttonA" onclick="query()" value="生成报表" /></td>
                </tr>
                <tr>
                    <td colspan="5">
                        <div class="show_select"></div>
                    </td>
                </tr>
            </tbody>
        </table>


       </div>
       <!--div class="buttonA_box">
           <input type="button" class="buttonA" onclick="query()" value="生成报表">
       </div-->
   </div>
        <br />
     <div class="wrapdown">
        <div class="footer">
            <script type="text/javascript" src="../common/layout/footer.js"></script>
        </div>
    </div>  
    </body>
</html>

